﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Soft.Data
{
    public sealed class DBConnectionGroup : SoftObject
    {


        public DBConnectionGroup(DBType dbType, MesMethodFlag flag, string primaryConn, string StandbyConn)
        {
            this.DBType = dbType;
            this.MethodFlag = flag;
            this.PrimaryDBConnectionString = primaryConn;
            this.StandbyDBConnectionString = StandbyConn;
        }


        /// <summary>
        /// 数据库的类型
        /// </summary>
        public DBType DBType { get; private set; }


        /// <summary>
        /// 业务模块标识
        /// </summary>
        public MesMethodFlag MethodFlag { get; private set; }


        /// <summary>
        /// 主数据连接字符串
        /// </summary>
        public string PrimaryDBConnectionString { get; private set; }


        /// <summary>
        /// 备份数据库连接字符串
        /// </summary>
        public string StandbyDBConnectionString { get; private set; }


    }
}
